'''
打印所有的水仙花数
ps：是指三位数的三次方相加等于三位数拼起来

i = 0
for i in range(100,1000):
    j = i // 100
    k = i // 10 % 10
    m = i % 10
    sum = j**3 + k**3 + m**3
    if sum == i:
     print(i)
'''

'''
猴子一开始有若干桃，立即吃了一半多一个，每天如此，到第十天还有一个桃，求一共多少桃

i = 1
j = 1
while j <= 9:
    j += 1
    i = (i + 1) * 2

print(i)
'''

'''
统计一段字符串里面，英文，空格，数字和其他字符的个数

str = input('请输入字符串：')
j = 0
k = 0
m = 0
l = 0
for i in str:
    if i.isdigit():
        j += 1
    elif i.isalpha():
        k += 1
    elif i.isspace():
        m += 1
    else:
        l += 1
    print(l)
print(f'数字有{j}个，字母有{k}个，空格有{m}个,其他字符有{l}个')
'''

'''
给定一个简单列表，并进行排序

lst1.sort()
print(lst1)

lst1 = [10,30,20,90,50,40,80,60,70,10]
lst2 = sorted(lst1)
print(lst1)
print(lst2)
'''

'''
给定一组学生列表，根据成绩进行排序

student = [
    {'sno':100,'name':"wang",'score':80},
    {'sno':101,'name':"zhao",'score':90},
    {'sno':102,'name':"lee",'score':75},
]
s = sorted(student,key=lambda x:x["score"])
print(s)
'''